﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Guestbook.IBiz;
using Guestbook.IDal;
//using Guestbook.Unity;
using IDAL;
using Moon.Orm;

namespace Guestbook.Biz
{
    public class BaseBiz<T> : IBaseBiz<T> where T : new()
    {
        private IBaseDao<T> _baseDal = new BaseDao<T>();

        public object Save(EntityBase id)
        {
           return _baseDal.Save(id);
          //  throw new NotImplementedException();
        }

        public long Save(string id)
        {
            throw new NotImplementedException();
        }


        public long Delete(string id)
        {
            throw new NotImplementedException();
        }

        public T GetByID(Field id)
        {
            return _baseDal.GetByID(id);
        }

        public long Delete(Field id)
        {
            throw new NotImplementedException();
        }
    }
}
